package at.horario.web.pages.property;

import org.apache.wicket.model.IModel;
import org.apache.wicket.validation.validator.EmailAddressValidator;
import at.horario.web.property.StringProperty;

/**
 * Email property
 *
 * @author igor.vaynberg
 */
public class EmailProperty extends StringProperty {

    /**
     * Constructor
     *
     * @param path
     * @param label
     */
    public EmailProperty(String path, IModel label) {
        super(path, label);
        add(EmailAddressValidator.getInstance());
    }

}
